﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mathematics._Operations
{
    public class SubtractOperator:Operator
    {
        public SubtractOperator(MathExpression leftTerm, MathExpression rightTerm) 
            : base(leftTerm, rightTerm)
        {
        }

        public override string OperatorSymbol
        {
            get { return "-"; }
        }

        protected override double PerformOperation(double left, double right)
        {
            return left - right;
        }

    }
}
